﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.DataImport.ImportCustomData"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="135"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <Label
            Grid.Row="0" Grid.Column="0"
            Margin="5,0,0,0" VerticalAlignment="Center">
            Network name:
        </Label>
        <TextBox
            Grid.Row="0" Grid.Column="1" x:Name="txtNetworkName"
            Margin="5,0,5,0" VerticalAlignment="Center" HorizontalAlignment="Left"
            Width="200"/>
        
        <Label
            Grid.Row="1" Grid.Column="0"
            Margin="5,0,0,0" VerticalAlignment="Center">
            File path:
        </Label>
        <StackPanel
            Grid.Row="1" Grid.Column="1" Orientation="Horizontal"
            Margin="5,0,5,0" VerticalAlignment="Center" HorizontalAlignment="Left">
            <TextBox x:Name="txtFilePath" Width="200"/>
            <Button x:Name="btnBrowse" Content=".." Width="30" Click="btnBrowse_Click" />
        </StackPanel>
        
        <TabControl
            Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
            <TabItem Header="Vertices">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="130"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <Label
                        Grid.Row="0" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Worksheet:
                    </Label>
                    <ComboBox
                        Grid.Row="0" Grid.Column="1" x:Name="cboWorksheet1"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left" SelectionChanged="cboWorksheet1_SelectionChanged">
                    </ComboBox>

                    <Label
                        Grid.Row="1" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Entity type:
                    </Label>
                    <ComboBox
                        Grid.Row="1" Grid.Column="1" x:Name="cboEntityTypeField"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="2" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Entity ID:
                    </Label>
                    <ComboBox
                        Grid.Row="2" Grid.Column="1" x:Name="cboEntityIDField"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="3" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Entity name:
                    </Label>
                    <ComboBox
                        Grid.Row="3" Grid.Column="1" x:Name="cboEntityNameField"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="4" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Entity size:
                    </Label>
                    <ComboBox
                        Grid.Row="4" Grid.Column="1" x:Name="cboEntitySizeField"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>
                </Grid>
            </TabItem>
            <TabItem Header="Edges">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="130"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <Label
                        Grid.Row="0" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Worksheet:
                    </Label>
                    <ComboBox
                        Grid.Row="0" Grid.Column="1" x:Name="cboWorksheet2"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left" SelectionChanged="cboWorksheet2_SelectionChanged">
                    </ComboBox>

                    <Label
                        Grid.Row="1" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        From entity:
                    </Label>
                    <ComboBox
                        Grid.Row="1" Grid.Column="1" x:Name="cboFromEntityID"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="2" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        To entity:
                    </Label>
                    <ComboBox
                        Grid.Row="2" Grid.Column="1" x:Name="cboToEntityID"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="3" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Distance:
                    </Label>
                    <ComboBox
                        Grid.Row="3" Grid.Column="1" x:Name="cboDistanceField"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>

                    <Label
                        Grid.Row="4" Grid.Column="0"
                        Margin="5,0,0,0" VerticalAlignment="Center">
                        Count:
                    </Label>
                    <ComboBox
                        Grid.Row="4" Grid.Column="1" x:Name="cboAggregate"
                        Margin="5,0,5,0" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left">
                    </ComboBox>
                </Grid>
            </TabItem>
        </TabControl>
        
        <StackPanel
            Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
            Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right"
            Margin="5,0,5,0">
            <Button x:Name="btnCancel" Content="Cancel" Width="65" Click="btnCancel_Click" />
            <Button x:Name="btnOK" Content="OK" Width="65" Margin="5,0,0,0" Click="btnOK_Click" />
        </StackPanel>
    </Grid>
</UserControl>
